<div style='max-height:500px;overflow:auto;min-width:850px;'>
	<table class="table table-hover" style="min-width:850px;">
		<tbody>   
			{loop $list $row}
			<tr>
				<td><img src="{$_W[attachurl]}{$row['images']}" style='width:30px;height:30px;padding1px;border:1px solid #ccc' /> {$row['bookname']}</td>
				<td>{if $row['validity']==0}长期有效{else}有效期{$row['validity']}天{/if}</td>
				<td style="width:80px;"><a href="javascript:;" onclick='select_lesson({php echo json_encode($row);})' data-dismiss="modal">选择</a></td>
			</tr>
			{/loop}
			{if count($list)<=0}
			<tr> 
				<td colspan='3' align='center'>未找到相关课程</td>
			</tr>
			{/if}
		</tbody>
	</table>
</div>